﻿namespace MDXStudio
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using WeifenLuo.WinFormsUI.Docking;

    public class BrowserWindow : DockContent
    {
        private IContainer components;
        private System.Windows.Forms.WebBrowser webBrowser;

        public BrowserWindow()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.webBrowser = new System.Windows.Forms.WebBrowser();
            base.SuspendLayout();
            this.webBrowser.Dock = DockStyle.Fill;
            this.webBrowser.Location = new Point(0, 0);
            this.webBrowser.MinimumSize = new Size(20, 20);
            this.webBrowser.Name = "webBrowser";
            this.webBrowser.Size = new Size(0x124, 0x111);
            this.webBrowser.TabIndex = 0;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x124, 0x111);
            base.Controls.Add(this.webBrowser);
            base.DockAreas = DockAreas.Document;
            base.HideOnClose = true;
            base.Name = "BrowserWindow";
            base.TabText = "Web";
            this.Text = "Web";
            base.ResumeLayout(false);
        }

        internal System.Windows.Forms.WebBrowser WebBrowser
        {
            get
            {
                return this.webBrowser;
            }
        }
    }
}

